@extends('layouts.app')

@section('content')
<div id="new">
    <form action="{{ url('/admin/user/'.$user->id) }}" method="POST">
        {{ method_field('PATCH') }}
        {!! csrf_field() !!}
        <input type="hidden" name="id" value="{{ $user->id }}">
        <div class="form-group">
            <label>用户</label>
            <input value="{{ $user->name }}" type="text" name="name" class="form-control" style="width: 300px;" required="required">
        </div>
        <div class="form-group">
            <label>权限</label>
            <select class="form-control" name="groupm">
                <option value="administrator">administrator</option>
                <option value="customer">customer</option>
            </select>
        </div>
        <div class="form-group">
            <label>电子邮箱</label>
            <input value="{{ $user->email }}" type="text" name="website" class="form-control" style="width: 300px;" disabled>
        </div>
        <button type="submit" class="btn btn-lg btn-success col-lg-12">Submit</button>
    </form>
</div>
@endsection